package com.sevennotes.classtable.ui.theme

import androidx.compose.material.Colors
import androidx.compose.material.MaterialTheme
import androidx.compose.material.darkColors
import androidx.compose.material.lightColors
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import com.sevennotes.classtable.utils.contentColor

fun colorPaletteMaker(primary: Color) = lightColors(
    primary = primary,
    primaryVariant = Color(0xFF707472),
    secondary = primary,
    background = Color(0xFFFFFFFF),
    surface = Color.White,
    onSurface = Color.Black,
    onPrimary = contentColor(primary),
    onSecondary = contentColor(primary)
    /* Other default colors to override
    onBackground = Color.Black,
    background = Color.White,
    */
)


@Composable
fun ClassTableTheme(colors: Colors, content: @Composable() () -> Unit) {

    MaterialTheme(
        colors = colors,
        typography = Typography,
        shapes = Shapes,
        content = content
    )
}